package com.ruoyi.drugs.service.impl;

import com.ruoyi.drugs.domain.Dramaintain;
import com.ruoyi.drugs.mapper.DruDrmaintainMapper;
import com.ruoyi.drugs.service.IDruDrmaintainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DruDrmaintainServiceImpl implements IDruDrmaintainService {
    @Autowired
    private DruDrmaintainMapper druDrmaintainMapper;

    @Override
    public int updateDrmaintain(Dramaintain dramaintain) {
        return druDrmaintainMapper.updateDrmaintain(dramaintain);
    }

    @Override
    public Dramaintain selectDrmaintainById(Long drmId) {
        return druDrmaintainMapper.selectDramaintainById(drmId);
    }

    @Override
    public int deleteDrmaintainByIds(Long[] drmIds) {
        return druDrmaintainMapper.deleteDrmaintainByIds(drmIds);
    }

    @Override
    public int insertDrmaintain(Dramaintain dramaintain) {
        return druDrmaintainMapper.insertDrmaintain(dramaintain);
    }

    @Override
    public List<Dramaintain> selectDrmaintainList(Dramaintain dramaintain) {
        return druDrmaintainMapper.selectDrmaintainList(dramaintain);
    }

    @Override
    public int updateDrmaintains(Long[] drmIds) {
        return druDrmaintainMapper.updateDrmaintains(drmIds);

    } @Override
    public int updateDrmaintainss(Long[] drmIds) {
        return druDrmaintainMapper.updateDrmaintainss(drmIds);
    }
}
